package com.staff.service;

import java.util.List;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.domain.Specification;

import com.common.util.AJAXResultMessage;
import com.staff.entity.StaffContract;
import com.staff.entity.dto.StaffContractQueryDTO;


public interface IStaffContractService {
	public AJAXResultMessage saveOrUpdate(StaffContract staffContract);
	public AJAXResultMessage saveOrUpdate(StaffContractQueryDTO staffContractQueryDTO);
	
	public void delete(StaffContract staffContract);
	public StaffContract findOne(Long id);
	public List<StaffContract> findAll();
	public void delete(List<Long>ids);
	//动态条件查询
	public Page<StaffContractQueryDTO> findAll(Specification<StaffContract> spec, Pageable pageable);
}
